import { defineComponent, h, PropType } from 'vue';

export default defineComponent({
  props: {
    name: {
      type: String as PropType<string>,
      required: true,
    },
  },
  setup(props) {
    return {
      name: props.name,
    };
  },
  render() {
    return h("div", {
      'onUpdate:modelValue': (value: any) => {
        this.name = value;
      },
      modelValue: this.name
    })
  },
});
